document.addEventListener('DOMContentLoaded', () => {
    var likesbtn = document.getElementById('likes-btn')
    likesbtn.addEventListener('click', () => {
      fetch('/images/likes/' + likesbtn.dataset.imageid, {method: 'POST'})
        .then(response => response.json())
        .then(data => {
          //
        })
    })
  })